import request from '../../utils/request'
// 登录
export const loginList = (params:any) => {
  return request.post('visit/admin/login', params)
}


// 访客列表-------------------------------------------------------------------------------------------
export const List = (data:any) => {
  return request.get('visit/visituser/list', data)
}

// 访客详情
export const vxq = (data:any) => {
  return request.get('visit/visituser/show', data)
}

// 访客添加
export const visituser = (data:any) => {
  return request.post('visit/visituser/add', data)
}



// 核检人列表-------------------------------------------------------------------------------------------
export const reviewer = (data:any) => {
  return request.get('visit/reviewer/list', data)
}

// 核检人删除
export const del1 = (data:any) => {
  return request.get('visit/reviewer/del', data)
}

// 核检人 启用/不启用管理员
export const changestatus = (data:any) => {
  return request.post('visit/reviewer/changestatus', data)
}

// 核检人 添加核销人员
export const add = (data:any) => {
  return request.post('visit/reviewer/add', data)
}

// 核检人 修改核销人员
export const edit = (data:any) => {
  return request.post('visit/reviewer/edit', data)
}

// 核检人 三级联动
export const department = (data:any) => {
  return request.get('visit/department/list', data)
}




// 校园动态列表-------------------------------------------------------------------------------------------
export const news = (data:any) => {
  return request.get('visit/news/list', data)
}

// 校园动态删除
export const delli = (data:any) => {
  return request.get('visit/news/del', data)
}

// 校园动态添加
export const addition = (data:any) => {
  return request.post('visit/news/add', data)
}

// 校园动态修改
export const edit2 = (data:any) => {
  return request.post('visit/news/edit', data)
}

// 校园动态详情
export const show = (data:any) => {
  return request.get('visit/news/show', data)
}


// 审核日志----------------------------------------------------------------------------------------------
export const auditlog = (data:any) => {
  return request.get('visit/auditlog/list', data)
}

// 审核日志详情
export const audshow = (data:any) => {
  return request.get('visit/auditlog/show', data)
}



// 核销日志---------------------------------------------------------------------------------------------
export const cancel = (data:any) => {
  return request.get('visit/reviewer/log', data)
}